<?php
    include('../lib/conn.php');
    $username=$_GET['username'];
    $sql = "select * from users where username='$username'";

    $result = $mysqli->query($sql);
    
    if($result->num_rows>0){
        echo '{"register":false}';
    }else{
        echo '{"register":true}';
    }
?>